<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex jiluxiangqing_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between jiluxiangqing_fd0_0'      >
            <view   class='flex flex-wrap align-center jiluxiangqing_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  jiluxiangqing_fd0_0_c0_c0'  >&#xE794;</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='jiluxiangqing_fd0_0_c1_c0'  >记录详情</text>
</view>
    <view   class='flex align-center justify-end jiluxiangqing_fd0_0_c2'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---订单flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout jiluxiangqing_flex_1"    >
            <view   class='flex flex-direction flex-wrap align-stretch jiluxiangqing_fd1_0'      >
            <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c0'      >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >客户</text>
<text   >王先生</text>
</view>
    <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c1'    v-if= "dataDetails.coupon_money!='0.00'"  >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >手机</text>
<text class='jiluxiangqing_fd1_0_c1_c1'  >18612341234</text>
</view>
    <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c1'      >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >型号</text>
<text class='jiluxiangqing_fd1_0_c1_c1'    v-if= " dataDetails.order_info.express_price>money"  >三元锂</text><text class='jiluxiangqing_fd1_0_c2_c1_1'    v-if= " dataDetails.order_info.express_price==money"  >包邮</text>
</view>
    <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c1'    v-if= " dataDetails.discount_money>money"  >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >数量</text>
<text class='jiluxiangqing_fd1_0_c1_c1'  >{{dataDetails.discount_money}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c1'    v-if= " dataDetails.discount_money>money"  >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >预约时间</text>
<text class='jiluxiangqing_fd1_0_c1_c1'  >{{dataDetails.discount_money}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-end jiluxiangqing_fd1_0_c1'    v-if= " dataDetails.discount_money>money"  >
        <text class='jiluxiangqing_fd1_0_c0_c0'  >回收地点</text>
<text class='jiluxiangqing_fd1_0_c5_c1'  >{{dataDetails.discount_money}}</text>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch jiluxiangqing_fd1_1'      >
            <view   class='flex flex-wrap align-center jiluxiangqing_fd1_1_c0'      >
                
            <view class='flex  jiluxiangqing_fd1_1_c0_c0'    ></view>
        
<text class='jiluxiangqing_fd1_1_c0_c1'  >订单信息</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-between jiluxiangqing_fd1_1_c1'      >
        <text class='jiluxiangqing_fd1_1_c1_c0'  >订单编号</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='jiluxiangqing_fd1_1_c1_c1_c0'  >{{dataDetails.order_sn}}</text>
<text class='jiluxiangqing_fd1_1_c1_c1_c1'     @tap.stop="copyText(dataDetails.order_sn)" >复制</text>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
            <view   class='flex flex-wrap align-center justify-between jiluxiangqing_fd1_1_c2_c0'      >
        <text class='jiluxiangqing_fd1_1_c2_c0_c0'  >下单时间</text>
<text class='jiluxiangqing_fd1_1_c2_c0_c1'  >{{dataDetails.create_time}}</text>
</view>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch jiluxiangqing_fd1_2'      >
            <view   class='flex flex-wrap align-center jiluxiangqing_fd1_1_c0'      >
                
            <view class='flex  jiluxiangqing_fd1_1_c0_c0'    ></view>
        
<text class='jiluxiangqing_fd1_1_c0_c1'  >回收信息</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-between jiluxiangqing_fd1_2_c1'      >
        <text class='jiluxiangqing_fd1_2_c1_c0'  >订单编号</text>
    <view   class='flex flex-wrap align-center'      >
        <benben-input class='jiluxiangqing_fd1_2_c1_c1_c0'   type="text" :placeholder="`请输入`" confirm-type="done" :maxlength="-1" placeholder-style="color:#999;font-size:28rpx"   />
<text class='jiluxiangqing_fd1_2_c1_c1_c1'  >KG</text>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
            <view   class='flex flex-wrap align-center justify-between jiluxiangqing_fd1_1_c2_c0'      >
        <text class='jiluxiangqing_fd1_2_c2_c0_c0'  >备注</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='jiluxiangqing_fd1_2_c1_c1_c1'  >2020-09-28 21:12</text>
</view>
</view>
</view>
    <view   class='flex flex-wrap align-stretch justify-between jiluxiangqing_fd1_2_c1'      >
        <text class='jiluxiangqing_fd1_2_c1_c0'  >完成时间</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='jiluxiangqing_fd1_2_c1_c1_c1'  >2020-09-28 21:12</text>
</view>
</view>
</view>
</view>
        
<!---订单flex布局结束-->
<benben-popup v-model="popupShow1706076633241" :mask="true" :mask-close-able="false"  mode='center' >
    <!---删除弹窗flex布局开始-->
 <view class="flex flex-direction flex-wrap align-center jiluxiangqing_flex_2"    >
        <text class='jiluxiangqing_fd2_0'  >提示</text>
<text class='jiluxiangqing_fd2_1'  >确定开始接单</text>
    <view   class='flex flex-wrap align-center jiluxiangqing_fd2_2'      >
        <button class='jiluxiangqing_fd2_2_c0'   >取消</button>
<button class='jiluxiangqing_fd2_2_c1'   >确认</button>
</view>
</view>
        
<!---删除弹窗flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"popupShow1706076633241":false,"cut":"1","cancel_id":"","dataDetails":{"order_sn":"","user_nickname":"","number":"","weghit":"","remark":"","order_status":"","nickname_2":"","freerecyclingtype_name":"","address":"","detail_address":"","time":"","lat":"","lng":"","aid":"","create_id":"","update_time":"","create_time":"","status":"","sort":"","is_del":"","freerecyclingtype_id":"","user_id":"","user_id_2":"","user_info":[]},"dataMessage":[],"text":"shenqingchengg","money":0,"order_id":"1026","order_sn":""};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            let {order_id,order_sn}=options
if (order_id !== undefined) this.order_id = order_id
if (order_sn !== undefined) this.order_sn = order_sn
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //跳转售后详情
                 gotoreturnFunc(view_refund_list,refund_id){
                        if( view_refund_list==0){
        
    }
    else{
        
    }
                },
                //删除订单
                async deleteOrderFunc(){
                        //请求方法
    //数据验证
    
  let data6447c3b69f234 = await this.$api.get(global.apiUrls.post6447c3b69f234, {
    order_id:this.order_id
  });
  
  if (data6447c3b69f234.data.code != 1) {
    this.$message.info(data6447c3b69f234.data.msg);
    return
  } 
  
  
  
                    this.$message.info('删除成功');
                uni.$emit('shenqingchengg',this.text)
                setTimeout(()=>{
                    this.$urouter.navigateBack(1);
      },500)
                },
                //订单-订单详情
                async getDetailFunc(){
                        //请求方法
    //数据验证
    
  let datadataDetails = await this.$api.get(global.apiUrls.post65d17a16e997c, {
    
  });
  
  if (datadataDetails.data.code != 1) {
    this.$message.info(datadataDetails.data.msg);
    return
  } 
  let infodataDetails = datadataDetails.data;
  this.dataDetails = infodataDetails.data
  
                },
                //取消订单
                async cancelOrderFunc(){
                                if(!validate(this.cancel_id,'require')){
                 this.$message.info('请选择取消原因');
                 return false;
            }
    //请求方法
    //数据验证
    
  let data62cb8b8438141 = await this.$api.post(global.apiUrls.post62cb8b8438141, {
    order_id:this.dataDetails.aid,return_id:this.cancel_id
  });
  
  if (data62cb8b8438141.data.code != 1) {
    this.$message.info(data62cb8b8438141.data.msg);
    return
  } 
  
  
  
    this.popupShow1657247297312 = false;
                    this.$message.info('取消成功');
                uni.$emit('shenqingchengg',this.text)
                    this.getDetailFunc()
                },
                //获取取消订单状态
                async getCancelTypeFunc(){
                        //请求方法
    //数据验证
    
  let datadataMessage = await this.$api.get(global.apiUrls.post641ae6544d2d5, {
    type:'2',sort_type:'desc'
  });
  
  if (datadataMessage.data.code != 1) {
    this.$message.info(datadataMessage.data.msg);
    return
  } 
  let infodataMessage = datadataMessage.data;
  this.dataMessage = infodataMessage.data
  
                },
                //提现发货
                async remindShopFunc(){
                        //请求方法
    //数据验证
    
  let data62bec4f86725d = await this.$api.post(global.apiUrls.post62bec4f86725d, {
    order_id:this.dataDetails.aid
  });
  
  if (data62bec4f86725d.data.code != 1) {
    this.$message.info(data62bec4f86725d.data.msg);
    return
  } 
  
  
  
                    this.$message.info('提醒成功');
                uni.$emit('shenqingchengg',this.text)
                    this.getDetailFunc()
                },
                //确认收货
                async confirmReceiptFunc(){
                        //请求方法
    //数据验证
    
  let data64218bff49e61 = await this.$api.post(global.apiUrls.post64218bff49e61, {
    order_id:this.dataDetails.aid
  });
  
  if (data64218bff49e61.data.code != 1) {
    this.$message.info(data64218bff49e61.data.msg);
    return
  } 
  
  
  
                    this.$message.info('收货成功');
                uni.$emit('shenqingchengg',this.text)
                    this.getDetailFunc()
                },
                //是否多包裹
                 isMultiplePackagesFunc(type){
                        if( type=='1'){
        
    }
    else if( type==0){
        
    }
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#F8F8F8;background-size: 100% auto;
        }
    .jiluxiangqing_flex_0{
        background:#FFF;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .jiluxiangqing_fd0_0_c2{
        padding:0rpx 0rpx 0rpx 0rpx;width:200rpx;
    }
    .jiluxiangqing_fd0_0_c1_c0{
        font-size:36rpx;font-weight:600;color:var(--benbenFontColor0);
    }
    .jiluxiangqing_fd0_0_c0_c0{
        font-size:36rpx;color:var(--benbenFontColor0);font-weight:500;
    }
    .jiluxiangqing_fd0_0_c0{
        width:200rpx;
    }
    .jiluxiangqing_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .jiluxiangqing_flex_1{
        padding:5rpx 24rpx 32rpx 24rpx;margin:0rpx 0rpx 88rpx 0rpx;
    }
    .jiluxiangqing_fd1_2_c2_c0_c0{
        margin:0rpx 72rpx 0rpx 0rpx;font-size:28rpx;font-weight:400;color:var(--benbenFontColor0);
    }
    .jiluxiangqing_fd1_2_c1_c1_c1{
        margin:0rpx 0rpx 0rpx 12rpx;
    }
    .jiluxiangqing_fd1_2_c1_c1_c0{
        font-size:28rpx;text-align:right;
    }
    .jiluxiangqing_fd1_2_c1_c0{
        font-size:28rpx;font-weight:400;color:var(--benbenFontColor0);
    }
    .jiluxiangqing_fd1_2_c1{
        line-height:34rpx;margin:32rpx 0rpx 0rpx 0rpx;font-size:28rpx;
    }
    .jiluxiangqing_fd1_2{
        background:#fff;background-size:100% auto !important;border-radius:16rpx 16rpx 16rpx 16rpx;padding:32rpx 24rpx 32rpx 24rpx;margin:0rpx 0rpx 100rpx 0rpx;
    }
    .jiluxiangqing_fd1_1_c2_c0_c1{
        font-size:24rpx;font-weight:400;color:#333333;
    }
    .jiluxiangqing_fd1_1_c2_c0_c0{
        margin:0rpx 72rpx 0rpx 0rpx;font-size:28rpx;font-weight:400;color:#999999;
    }
    .jiluxiangqing_fd1_1_c2_c0{
        margin:32rpx 0rpx 0rpx 0rpx;
    }
    .jiluxiangqing_fd1_1_c1_c1_c1{
        border:1px solid #10337E;background:#FFFFFF;font-size:22rpx;font-weight:400;color:var(--benbenFontColor4);border-radius:16rpx 16rpx 16rpx 16rpx;padding:1rpx 6rpx 1rpx 6rpx;
    }
    .jiluxiangqing_fd1_1_c1_c1_c0{
        font-size:24rpx;font-weight:400;color:#333333;margin:0rpx 43rpx 0rpx 72rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;
    }
    .jiluxiangqing_fd1_1_c1_c0{
        font-size:28rpx;font-weight:400;color:#999999;
    }
    .jiluxiangqing_fd1_1_c1{
        line-height:34rpx;margin:32rpx 0rpx 0rpx 0rpx;
    }
    .jiluxiangqing_fd1_1_c0_c1{
        font-size:32rpx;font-weight:500;color:#333333;
    }
    .jiluxiangqing_fd1_1_c0_c0{
        background:rgba(16, 51, 126, 1);width:6rpx;height:30rpx;margin:0rpx 15rpx 0rpx 0rpx;transform:scaleX(0.5);
    }
    .jiluxiangqing_fd1_1_c0{
        border-bottom:1px solid #eee;padding:0rpx 0rpx 24rpx 0rpx;margin:0rpx 0rpx 0rpx 0rpx;
    }
    .jiluxiangqing_fd1_1{
        background:#fff;background-size:100% auto !important;border-radius:16rpx 16rpx 16rpx 16rpx;padding:32rpx 24rpx 32rpx 24rpx;margin:12rpx 0rpx 24rpx 0rpx;
    }
    .jiluxiangqing_fd1_0_c5_c1{
        font-size:28rpx;color:#333333;line-height:42rpx;text-align:right;
    }
    .jiluxiangqing_fd1_0_c2_c1_1{
        font-size:28rpx;font-weight:700;color:#333333;line-height:42rpx;
    }
    .jiluxiangqing_fd1_0_c1_c1{
        font-size:28rpx;color:#333333;line-height:42rpx;
    }
    .jiluxiangqing_fd1_0_c1{
        margin:0rpx 0rpx 32rpx 0rpx;
    }
    .jiluxiangqing_fd1_0_c0_c0{
        font-size:28rpx;font-weight:500;color:#333333;margin:0rpx auto 0rpx 0rpx;
    }
    .jiluxiangqing_fd1_0_c0{
        margin:32rpx 0rpx 32rpx 0rpx;
    }
    .jiluxiangqing_fd1_0{
        background:#fff;border-radius:16rpx 16rpx 16rpx 16rpx;background-size:100% auto !important;margin:24rpx 0rpx 24rpx 0rpx;padding:0rpx 24rpx 0rpx 24rpx;
    }
    .jiluxiangqing_flex_2{
        background:#fff;width:540rpx;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
    .jiluxiangqing_fd2_2_c1{
        border-top:1px solid #eee;border-left:1px solid #eee;background:#fff;line-height:110rpx;border-radius:0rpx 0rpx 16rpx 0rpx;font-size:32rpx;color:rgba(16, 51, 126, 1);font-weight:500;width:270rpx;
    }
    .jiluxiangqing_fd2_2_c0{
        border-top:1px solid #eee;background:#fff;line-height:110rpx;border-radius:0rpx 0rpx 0rpx 16rpx;font-size:32rpx;color:rgba(153, 153, 153, 1);font-weight:500;width:270rpx;
    }
    .jiluxiangqing_fd2_2{
        margin:37rpx 0rpx 0rpx 0rpx;
    }
    .jiluxiangqing_fd2_1{
        line-height:52rpx;font-size:32rpx;font-weight:400;color:#333333;margin:0rpx 32rpx 0rpx 32rpx;text-align:center;
    }
    .jiluxiangqing_fd2_0{
        font-size:36rpx;font-weight:700;line-height:32rpx;color:#333333;margin:40rpx 0rpx 40rpx 0rpx;
    }
</style>